package com.yehuishou.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.yehuishou.pojo.Partner;
import com.yehuishou.service.PartnerService;

@Controller
public class PartnerController {

	@Autowired
	private PartnerService partners;
	
	@ResponseBody
	@RequestMapping("partner")
	public List<Partner> find() {
		List<Partner> list = partners.find();
		return list;
	}
	
}
